package com 
{
	import flash.display.Sprite;
	import flash.filesystem.File;
	
	/**
	 * ...
	 * @author db0@qq.com
	 */
	public class RemoveFla extends Sprite 
	{
		
		public function RemoveFla() 
		{
			var file:File = new File("D:/New Project/src/com/greensock");
			removeFile(file);
		}
		
		public function removeFile(file:File):void
		{
			var filelist:Array = file.getDirectoryListing();
			var i:int = 0;
			while (i < filelist.length) {
				var file2:File = File(filelist[i]);
				//if (File(file2).type == ".fla" || file2.type == ".db" || file2.type == ".txt") {
				if (File(file2).name == ".svn" || file2.type == ".svn") {
					trace(file2.name,file2.type);
					file2.deleteFile();
				}else {
					if (file2.isDirectory) {
						removeFile(file2);
					}
				}
				++i;
			}
		}
		
	}

}